# tomcat-10
# 基于官方镜像进行构建,增加一些工具及中文支持.
# https://github.com/docker-library/tomcat/tree/3ffa12959996cd955614a78ca73c68313245d57f/10.1/jdk17

FROM tomcat:10.1.24-jdk17

LABEL maintainer="Libo <libo@jiachengnet.com>"

# 更新系统并安装tzdata包，tzdata 包含了所有可用的时区信息
RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \
    sed -i 's/security.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \
	chmod 777 /tmp && \
    apt-get update && \
    apt-get install -y --no-install-recommends tzdata vim iputils-ping && \
    ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo "Asia/Shanghai" > /etc/timezone && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*


RUN rm -rf $CATALINA_HOME/webapps.dist

